//早教系统课
import Layout from '@/views/layout/Layout'
import Three from '@/views/layout/Three'

const course = {
  path: '/course',
  name: 'course',
  key: 'course',
  component: Layout,
  meta: {
    title: '课程',
    icon: ''
  },
  children: [
    {
      path: '/systemCourse',
      name: 'systemCourse',
      key: 'systemCourse',
      component: Three,
      redirect: '/systemCourse/list',
      meta: {
        title: '早教系统课'
      },
      children: [{
        path: 'list',
        name: 'systemList',
        key: 'systemList',
        component: () => import('@/views/course/systemCourse/courseList/list'),
        meta: {
          title: '课程列表'
        }
      }, {
        path: 'add',
        name: 'courseListAdd',
        key: 'courseListAdd',
        component: () => import('@/views/course/systemCourse/courseList/add'),
        hidden: true,
        meta: {
          title: '课程添加'
        }
      }, {
        path: 'edit',
        name: 'courseListEdit',
        key: 'courseListEdit',
        component: () => import('@/views/course/systemCourse/courseList/add'),
        hidden: true,
        meta: {
          title: '课程编辑'
        }
      }, {
        path: 'monthAgelist',
        name: 'monthAgelist',
        key: 'monthAgelist',
        component: () => import('@/views/course/systemCourse/monthAgeSet/list'),
        meta: {
          title: '月龄内容设置'
        }
      }, {
        path: 'monthAgeEdit',
        name: 'monthAgeEdit',
        key: 'monthAgeEdit',
        component: () => import('@/views/course/systemCourse/monthAgeSet/edit'),
        hidden: true,
        meta: {
          title: '月龄编辑'
        }
      }],
    },
    {
      path: '/experienceCourse',
      name: 'experienceCourse',
      key: 'experienceCourse',
      component: Three,
      redirect: '/experienceCourse/list',
      meta: {
        title: '早教体验课'
      },
      children: [{
        path: 'list',
        name: 'experienceList',
        key: 'experienceList',
        component: () => import('@/views/course/experienceCourse/courseList/list'),
        meta: {
          title: '课程列表'
        }
      }, {
        path: 'add',
        name: 'experienceListAdd',
        key: 'experienceListAdd',
        component: () => import('@/views/course/systemCourse/courseList/add'),
        hidden: true,
        meta: {
          title: '课程添加'
        }
      }, {
        path: 'edit',
        name: 'experienceListEdit',
        key: 'experienceListEdit',
        component: () => import('@/views/course/systemCourse/courseList/add'),
        hidden: true,
        meta: {
          title: '课程编辑'
        }
      }, {
        path: 'monthAgelist',
        name: 'experienceMonthAgelist',
        key: 'experienceMonthAgelist',
        component: () => import('@/views/course/experienceCourse/monthAgeSet/list'),
        meta: {
          title: '月龄内容设置'
        }
      }, {
        path: 'monthAgeEdit',
        name: 'experienceMonthAgeEdit',
        key: 'experienceMonthAgeEdit',
        component: () => import('@/views/course/experienceCourse/monthAgeSet/edit'),
        hidden: true,
        meta: {
          title: '月龄编辑'
        }
      }],
    }, {
      path: '/music',
      name: 'musicManage',
      key: 'musicManage',
      component: Three,
      redirect: '/music/category',
      alwaysShow:true,
      meta: {
        title: '音乐管理'
      },
      children: [
        {
          path: 'musicAdd',
          name: 'musicAdd',
          key: 'musicAdd',
          hidden:true,
          component: () => import('@/views/course/musicManage/musicList/add'),
          meta: {
            title: '音乐添加'
          },
        }
      ]
    },
    {
      path:'monthAgeIntro',
      name:'monthAgeIntro',
      key:'monthAgeIntro',
      meta:{
        title:'月龄说明'
      },
      component:Three,
      children:[
        {
          path:'list',
          name:'monthAgeIntroList',
          key:'monthAgeIntroList',
          meta:{
            title:'月龄说明'
          },
          component:() => import('@/views/course/monthAgeIntro/list'),
      },{
          path:'add',
          name:'monthAgeIntroAdd',
          key:'monthAgeIntroAdd',
          meta:{
            title:'月龄说明添加'
          },
          hidden:true,
          component:() => import('@/views/course/monthAgeIntro/add'),
        },{
          path:'edit',
          name:'monthAgeIntroEdit',
          key:'monthAgeIntroEdit',
          meta:{
            title:'月龄说明编辑'
          },
          hidden:true,
          component:() => import('@/views/course/monthAgeIntro/add'),
        }
      ]
    }
  ]
}

export default course
